<?php
include "../librari/koneksi.php";
$id=$_POST['TxtKode'];
$tes=$_POST['Txttes'];
$bobot=$_POST['Txtbobot'];

//update data
$sql = " UPDATE tes SET nmTes='".$tes."', bobot='".$bobot."' WHERE idTes=".$id;

mysql_query($sql);

 echo "<script language='JavaScript'>document.location='tes.php?id=$id';
alert('Sukses. Klik OK!');
 </script>";
	
?>


